<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <el-button type="primary" @click="logOut">退出登录</el-button>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods:{
    logOut(){
      this.$cookie.delete("loginAuth");
      this.$router.push("/login")
    }
  }
}
</script>
